/**
 * 
 */
package instructions;
import dataCPU.*;
/**
 * @author dt08nu0
 *
 */
public class Print implements Instruction {

		
	private Address address;
	public Print(Address address) {
		this.address = address;
	}

    public String toString() {
	return "PRT "+address.toString();
    }

	public Word execute(Memory memory, Integer programCounter) {
	    System.out.println(memory.read(address));
	}

}
